package com.yzy.soft.system.freemarker.database;

public class PrimaryKey {
    //表类别(可为null)
    private  String tableCat;
    //表模式（可能为空）,在oracle中获取的是命名空间,其它数据库未知
    private String tableSchemaName;
    //表名
    private String tableName;
    //列名
    private String columnName;
    //序列号(主键内值1表示第一列的主键，值2代表主键内的第二列)
    private short keySeq ;
    //主键名称
    private String pkName;

    public PrimaryKey() {
    }

    public PrimaryKey(String tableCat, String tableSchemaName, String tableName, String columnName, short keySeq, String pkName) {
        this.tableCat = tableCat;
        this.tableSchemaName = tableSchemaName;
        this.tableName = tableName;
        this.columnName = columnName;
        this.keySeq = keySeq;
        this.pkName = pkName;
    }

    public String getTableCat() {
        return tableCat;
    }

    public void setTableCat(String tableCat) {
        this.tableCat = tableCat;
    }

    public String getTableSchemaName() {
        return tableSchemaName;
    }

    public void setTableSchemaName(String tableSchemaName) {
        this.tableSchemaName = tableSchemaName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public short getKeySeq() {
        return keySeq;
    }

    public void setKeySeq(short keySeq) {
        this.keySeq = keySeq;
    }

    public String getPkName() {
        return pkName;
    }

    public void setPkName(String pkName) {
        this.pkName = pkName;
    }
}
